﻿@page "/datagrid-realtime"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    DataGrid <strong>real-time</strong> data support
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    Sometimes your DataGrid should be updated real-time. This demo shows how to implement such a scenario.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo columns are dynamically generated from a dictionary, data regenerates every second using a <code>System.Timers.Timer</code>, and the grid displays <strong>ID</strong> (Guid) and <strong>Date</strong> (DateTime) with new random values on each refresh.
</RadzenText>

<RadzenExample ComponentName="DataGrid" Example="DataGridRealtimeData">
    <DataGridRealtimeData />
</RadzenExample>